package cityParser

import (
	"../engine"
	"fmt"
	"regexp"
)

type CityParser struct {
}

func (*CityParser) Parse(content *[]byte) (*[]*engine.Request, *[]*engine.Item) {
	compile, _ := regexp.Compile(`<a href="(http://www.zhenai.com/zhenghun/[\w\d]+)" data-v-[\w\d]+>([^<>]+)</a>`)
	submatch := compile.FindAllSubmatch(*content, -1)
	for i, _ := range submatch {
		//fmt.Printf("%s", v[1])
		//fmt.Printf("%s", "-")
		//fmt.Printf("%s", v[2])
		//fmt.Println()
		fmt.Printf("%d", i)
	}
	fmt.Println()

	req := new([]*engine.Request)

	fmt.Printf("%d")

	return req, nil
}
